import 'dart:async';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_ahj_app/app/qingning/home/QNViewModel.dart';
import 'package:flutter_ahj_app/base/basewidget/view/BaseWidget.dart';
import 'package:flutter_ahj_app/base/utils/JUIKit/JText.dart';
import 'package:flutter_ahj_app/base/utils/ShowFiles/zjTopBar.dart';

class MessafeView extends BaseStatefulWidget {
  @override
  State<StatefulWidget> initState() {
    // TODO: implement initState
    // throw UnimplementedError();
    return MessafeViewState();
  }
}

class MessafeViewState extends BaseState<QNViewModel, MessafeView> {

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
  }

  @override
  Widget initWidget() {
    return Scaffold(
      appBar: ZJTopBar(
        title: '消息',
      ).create(),
      resizeToAvoidBottomInset: true,
      backgroundColor: Color(0xfff4f5f6),
      bottomSheet: BottomAppBar(),
      body: _bodyView(),
    );
  }

  _bodyView() {
    return SingleChildScrollView(
      child: ListView.builder(
          shrinkWrap: true,
          physics: AlwaysScrollableScrollPhysics(),
          itemCount: 10,
          itemBuilder: (context, index) {
            return _item(index);
          }),
    );
  }

  _item(int index) {
    
  }
}
